import os

from dotenv import load_dotenv


dotenv_path: str = os.path.abspath(
    os.path.join(os.path.dirname( __file__ ), '.env')
)
if os.path.exists(dotenv_path): load_dotenv(dotenv_path)
else: raise Exception('Не найден файл .env')


DIALECT_DB = os.getenv('DIALECT_DB')
DRIVER_DB = os.getenv('DRIVER_DB')
POSTGRES_HOST = os.getenv('POSTGRES_HOST')
POSTGRES_PORT = os.getenv('POSTGRES_PORT')
POSTGRES_NAME = os.getenv('POSTGRES_NAME')
POSTGRES_USER = os.getenv('POSTGRES_USER')
POSTGRES_PASSWORD = os.getenv('POSTGRES_PASSWORD')

TELEGRAM_BOT_TOKEN = os.getenv('TELEGRAM_BOT_TOKEN')
